package com.huahua.api.processor;

import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.google.common.collect.Lists;
import com.huahua.api.entity.pojo.ApiNovelBookContent;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author LoveHuahua
 * @date 2021年09月20日 10:28
 * @description believe in yourself
 */
@Component
public class NovelContentNullProcessor implements NovelPostProcessor {


    @Override
    public void post(ApiNovelBookContent bookContent) {
        if (bookContent != null && StringUtils.isEmpty(bookContent.getContent())){
            bookContent.setContent("此章节正在获取,感谢使用LoveHuaHua Api");
        }
    }

}
